﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;

namespace Nikola.Common
{
    public class ConfigStaticResource
    {
        /// <summary>
        /// 记录日志方式
        /// </summary>
        public static string logType
        {
            get { return GetAppSetting("logType"); }
        }

        /// <summary>
        /// 取AppSetting的值
        /// </summary>
        /// <param name="key">键</param>
        /// <returns></returns>
        private static string GetAppSetting(string key)
        {
            return ConfigurationManager.AppSettings[key];
        }
    }
}